import Vue from 'vue'
import Router from 'vue-router'
const index = resolve => require(['@/pages/index'],resolve)
const guanli = resolve => require(['@/pages/guanli'],resolve)
const moneySet = resolve => require(['@/pages/money'],resolve)
const changeMoney = resolve => require(['@/pages/set/changeMoney'],resolve)
const changePwd = resolve => require(['@/pages/set/changePwd'],resolve)
const phoneSet = resolve => require(['@/pages/set/phoneSet'],resolve)
const xieyiSet = resolve => require(['@/pages/set/xieyiSet'],resolve)
const edit = resolve => require(['@/components/edit'],resolve)

Vue.use(Router)

export default new Router({
  mode:'history',
  routes: [
    {
      path: '/',
      name: 'index',
      component: index,
      meta:{
        keepAlive:true
      }
    },
    {
      path: '/guanli',
      name: 'guanli',
      component: guanli,
      meta:{
        keepAlive:true
      }
    },
    {
      path: '/changeMoney',
      name: 'changeMoney',
      component: changeMoney,
      meta:{
        keepAlive:true
      }
    },
    {
      path: '/changePwd',
      name: 'changePwd',
      component: changePwd,
      meta:{
        keepAlive:true
      }
    },
    {
      path: '/phoneSet',
      name: 'phoneSet',
      component: phoneSet,
      meta:{
        keepAlive:true
      }
    },
    {
      path: '/xieyiSet',
      name: 'xieyiSet',
      component: xieyiSet,
      meta:{
        keepAlive:true
      }
    },

    {
      path: '/moneySet',
      name: 'moneySet',
      component: moneySet,
      meta:{
        keepAlive:true
      }
    },
    {
      path: '/edit',
      name: 'edit',
      component: edit,
      meta:{
        keepAlive:true
      }
    },
  ]
})
